#pragma once

#include "../im.h"
#include "mysql/MysqlConnectionPool.h"
#include "IMSession.h"
#include "IMUser.h"
#include "IMUserManager.h"
#include <openssl/evp.h>
#include <sstream>
#include <iomanip>

namespace db_logic
{
    void Registet(const msg_c_s::registet &msg, std::function<void(unsigned int err)> call);

    void Login(const msg_c_s::login &msg, const IMSessionPtr session, std::function<void(unsigned int err)> call);

    // 获取好友列表 b_send 是否发送上线通知
    void GetFriends(const userid_t &uid, const bool &b_send);
    // 获取群组列表 b_send 是否发送上线通知
    void GetGroup(const userid_t &uid, const bool &b_send);
}